public class StaticVarsB {
    public static String className = 'StaticVarsB';
    
    public static void method1() {
        StaticVarsA.method2();
    }
}